Name:		cmake
Version:	3.23.1
Release:	1%{?dist}
Summary:	A cross-platform open-source make system

License:	custom
URL:		https://www.cmake.org/
Source0:	https://www.cmake.org/files/v3.23/%{name}-%{version}.tar.gz

BuildRequires: gcc-c++
BuildRequires: libcurl-devel zlib-devel

%description
A cross-platform open-source make system

%prep
%setup -q


%build
./bootstrap --prefix=%{_prefix} --mandir=/share/man --docdir=/share/doc/cmake --datadir=/share/cmake \
  --system-curl \
  --parallel=`/usr/bin/getconf _NPROCESSORS_ONLN`
make %{?_smp_mflags}

%install
%make_install
rm -rf %{buildroot}/usr/share/doc/cmake/html/_sources

%files
%license Copyright.txt
%{_bindir}/cmake*
%{_bindir}/ctest
%{_bindir}/cpack
/usr/share/cmake
/usr/share/doc/cmake
/usr/share/aclocal/cmake.m4
/usr/share/bash-completion/completions/cmake
/usr/share/bash-completion/completions/cpack
/usr/share/bash-completion/completions/ctest
/usr/share/emacs/site-lisp/cmake-mode.el
/usr/share/vim/vimfiles/indent/cmake.vim
/usr/share/vim/vimfiles/syntax/cmake.vim

%changelog

